home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EuroCD 3
/
EuroCD 3.iso
/
Programming
/
Amos
/
AMOSList-1297
/
AMOSLIST
/
000007_amos-request@svcs1.digex.net_Mon Dec 1 15:35:38 1997.msg
< prev
next >
Wrap
Text File
|
1998-06-24
|
3KB
|
78 lines
Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
by mail4.access.digex.net (8.8.5/8.8.5) with ESMTP id PAA20495
for <mcox@access.digex.net>; Mon, 1 Dec 1997 15:35:13 -0500 (EST)
Received: (from daemon@localhost)
by svcs1.digex.net (8.8.5/8.8.5) id LAA11257
for amos-out; Mon, 1 Dec 1997 11:38:48 -0500 (EST)
Received: from mail2.access.digex.net (mail2.access.digex.net [205.197.247.3])
by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id LAA11254
for <amos-list@svcs1.digex.net>; Mon, 1 Dec 1997 11:38:47 -0500 (EST)
Received: from mailc.telia.com (root@mailc.telia.com [194.22.190.4])
by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id LAA15492
for <amos-list@access.digex.net>; Mon, 1 Dec 1997 11:38:37 -0500 (EST)
Received: from d1o30.telia.com (root@d1o30.telia.com [195.67.244.241])
by mailc.telia.com (8.8.8/8.8.5) with ESMTP id RAA19865
for <amos-list@access.digex.net>; Mon, 1 Dec 1997 17:38:11 +0100 (MET)
Received: from FOO.telia.com (t8o30p53.telia.com [195.67.245.233])
by d1o30.telia.com (8.8.5/8.8.5) with SMTP id RAA09458
for <amos-list@access.digex.net>; Mon, 1 Dec 1997 17:38:05 +0100 (MET)
From: "Mike" <mikael.hiltunen@ostersund.mail.telia.com>
To: <amos-list@access.digex.net>
Subject: Re: Fade routine
Date: Mon, 1 Dec 1997 17:38:21 +0100
Message-ID: <01bcfe77$89469980$e9f543c3@FOO.telia.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Status: O
X-Status:
>Hello guys
>
>I have a small problem that I would like some help to. I am creating
>a game and on the intro-screen I would like a picture to show up.
>First the palette would be $FFF on all 16 colours, but they would
>slowly fade down to their origin colours. Please... I really need
>a routine like that.
>If you guys even get this mail then please reply on it. I'm not sure
>if my mails gets to the list... =/
>
>Well... Seeya... /Marco
Here's 2 examples of how to do this:
-------------------------------
Screen open 0,640,256,16,hires
Rem Load your gfx here
Dim C(16)
For i=0 to 15
c(i)=colour(i) : Rem Save current palette in c()
colour i,$FFF : Rem Set current palette to $FFF
next i
Rem Fade to saved palette at speed 5
fade
5,c(0),c(1),c(2),c(3),c(4),c(5),c(6),c(7),c(8),c(9),c(10),c(11),c(12),c(13),
c(14),c(15)
-------------------------------
Screen open 0,640,256,16,hires : Screen hide 0
Ink 4 : Bar 10,10 To 50,50 : Rem Load your gfx here
Screen open 1,640,256,16,hires
Screen copy 0 To 1 : Screen 1 : Rem Copy the contents of screen 0 to Screen
1
For i=0 to 15
Colour I,$FFF : Rem Set palette to $FFF on screen 1
Next i
Fade 5 To 0 : Rem Fade screen 1 to the palette of screen 0 at speed 5
-------------------------------
Hope this helps,
// Mike